package com.gt.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gt.admin.domain.CheckAppointment;
import com.gt.admin.domain.vo.CheckAppointmentVO;
import com.gt.admin.mapper.CheckAppointmentMapper;
import com.gt.admin.service.ICheckAppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CheckAppointmentServiceImpl extends ServiceImpl<CheckAppointmentMapper, CheckAppointment> implements ICheckAppointmentService {
    @Autowired
    private CheckAppointmentMapper checkAppointmentMapper;

    public List<CheckAppointment> list(CheckAppointmentVO checkAppointmentVO){
        if (checkAppointmentVO.getSickId() == null){
            checkAppointmentVO.setSickId(0L);
        }return checkAppointmentMapper.list(checkAppointmentVO);
    }
}
